package com.mipo.designpattern.factorypattern.simplefactory.rolesresponsibilities;

public class Factory {
	
    public static Product getInstence(int productFlag){
        switch(productFlag){
            case 1:
                return new ConcreteProductA();
            case 2:
                return new ConcreteProductB();
            default:
                return null; 
        }
    }
    
}